package respdata

// 常用的返回response
var (
	CSuccess        = New(0, "SUCCESS", nil)         //成功
	CError          = New(1, "ERROR", nil)           //通用error
	CSysBusy        = New(2, "SYSTEM_BUSY", nil)     //系统繁忙
	CAccessTooMuch  = New(3, "REQUEST_LIMITED", nil) //请求受限
	CParamsInvalid  = New(4, "PARAMS_INVALID", nil)  //无效参数
	CVtCodeInvalid  = New(5, "CODE_INVALID", nil)    //无效验证码
	CNotSupport     = New(6, "NOT_SUPPORT", nil)     //不支持此操作
	CTryAgain       = New(7, "TRY_AGAIN", nil)       //请重试
	CFail           = New(8, "OPERATE_FAIL", nil)    //操作失败
	CPermissionDeny = New(9, "PERMISSION_DENY", nil) //权限受限
	CNotFound       = New(10, "NOT_FOUND", nil)      //未查询到数据

	CAuthDenied = New(99, "AUTH_DENY", nil) //授权过期
)

// init godoc
// @Summary      通用返回码
// @Description  以下为响应中通用的返回码
// @Description  查看 RESPONSE 对应码
// @Description  Code=0, "SUCCESS"         //成功
// @Description  Code=1, "ERROR"           //通用error
// @Description  Code=2, "SYSTEM_BUSY"     //系统繁忙
// @Description  Code=3, "REQUEST_LIMITED" //请求受限
// @Description  Code=4, "PARAMS_INVALID"  //无效参数
// @Description  Code=5, "CODE_INVALID"    //无效验证码
// @Description  Code=6, "NOT_SUPPORT"     //不支持此操作
// @Description  Code=7, "TRY_AGAIN"       //请重试
// @Description  Code=8, "OPERATE_FAIL"    //操作失败
// @Description  Code=9, "PERMISSION_DENY" //权限受限
// @Description  Code=10, "NOT_FOUND" //未查询到数据
// @Description  Code=99, "AUTH_DENY" //授权过期
// @Tags         通用
// @Router       /-common/code [post]
// @success 0  {object} respdata.ResponseData{} "code=0, SUCCESS 成功"
// @success 1  {object} respdata.ResponseData{} "code=1, ERROR 处理错误"
// @success 2  {object} respdata.ResponseData{} "code=2, SYSTEM_BUSY 系统错误"
// @failure 3  {object} respdata.ResponseData{} "code=3, REQUEST_LIMITED 请求受限"
// @failure 4  {object} respdata.ResponseData{} "code=4, PARAMS_INVALID 无效参数"
// @failure 5  {object} respdata.ResponseData{} "code=5, CODE_INVALID 无效验证码"
// @failure 6  {object} respdata.ResponseData{} "code=6, NOT_SUPPORT 不支持此操作"
// @failure 7  {object} respdata.ResponseData{} "code=7, TRY_AGAIN 请重试"
// @failure 8  {object} respdata.ResponseData{} "code=8, OPERATE_FAIL 操作失败"
// @failure 9  {object} respdata.ResponseData{} "code=9, PERMISSION_DENY 权限受限"
// @failure 10  {object} respdata.ResponseData{} "code=10, NOT_FOUND 未查询到数据"
// @failure 99  {object} respdata.ResponseData{} "code=99, AUTH_DENY 授权过期"
func init() {

}
